package vo;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Alexander
 */
public class TaskVO implements IValueObject{

    private int id;
    private String name;
    private String details;
    private Date startDate;
    private Date deadlineDate;
    private String currentState;
    private int priority;
    

    private int projectId;

    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int calendarioId) {
        this.projectId = calendarioId;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getCurrentState() {
        return currentState;
    }

    public void setCurrentState(String currentState) {
        this.currentState = currentState;
    }

    public Date getDeadlineDate() {
        return deadlineDate;
    }

    public void setDeadlineDate(Date deadlineDate) {
        this.deadlineDate = deadlineDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @Override
    public String toString() {
        SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
        return name + " " + format.format(startDate) + " - " + format.format(deadlineDate) + ", prioridad= " + priority;
    }

    
}
